﻿using Furion.DynamicApiController;
using Furion.Logging;
using Microsoft.AspNetCore.Mvc;
using NetCoreConsole1.Tools;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NetCoreConsole1.Controller
{
    [Route("api/[controller]")]
    [ApiController]
    public class AController : IDynamicApiController
    {
        [HttpGet]
        public async Task<dynamic> SendEmail([FromQuery] string title, [FromQuery] string content)
        {
            var emailContent = $"Hello from AController  title:{title},content:{content}";
            Log.Information(emailContent);
            EmailHelper.SendEmial($"AController : {title}", content, "245851619@qq.com");
            return (emailContent);
        }
    }
}
